<%= form_for @session, url: event_checkin_monitor_path(current_event, @session), html: {class: 'form-horizontal'} do |f|%>

  <div class="form-group"><label class="col-sm-2 control-label">日程名称</label>
    <div class="col-sm-3"> <%=f.text_field :name, class: 'form-control'%> </div>
  </div>

  <div class="form-group"><label class="col-sm-2 control-label">签到监控</label>
    <div class="col-sm-4">
      <%= f.check_box :checkin_enabled, class: 'form-control'%>
    </div>
  </div>

  <div class="form-group"><label class="col-sm-2 control-label">公司签到</label>
    <div class="col-sm-4">
      <%= f.check_box :company_checkin, class: 'form-control'%>
    </div>
  </div>

  <div class="form-group"><label class="col-sm-2 control-label">在前台隐藏</label>
    <div class="col-sm-4">
      <%= f.check_box :hidden, class: 'form-control'%>
    </div>
  </div>

  <div class="form-group hidden"><label class="col-sm-2 control-label">开启提问</label>
    <div class="col-sm-4">
      <%= f.check_box :question_enabled, class: 'form-control'%>
    </div>
  </div>

  <div class="form-group">
    <div class="col-sm-4 col-sm-offset-2">
      <%=link_to '取消', event_checkin_monitors_path(current_event), class: 'btn btn-white'%>
      <%= button_tag '保存', class: 'btn btn-primary'%>
    </div>
  </div>


<% end %>
